package com.cdu.ai_intelligent_teaching_and_training_system.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class Assignment {
    private Integer assignmentId;
    
    private Integer courseId; // 关联Course表的外键
    
    @NotBlank(message = "作业标题不能为空")
    private String title;
    
    private String description;
    
    @NotNull(message = "截止日期不能为空")
    private LocalDateTime dueDate;
    
    private LocalDateTime createdTime;
} 